            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <li><%= image_tag("page_white_add.png", :align=>"absmiddle")%> <%= link_to "发帖", newpost_group_path(@group) %></li>
                    <% if !current_user.nil? && @group.is_admin?(current_user) -%>
                        <li><%= image_tag("page_white_edit.png", :align=>"absmiddle")%> <%= link_to "编辑小组资料", edit_group_path(@group) %></li>
                    <% end -%>
                    <% if !current_user.nil? && current_user.is_group_admin(@group) -%>
                        <li><%= image_tag("user_edit.png", :align=>"absmiddle")%> <%= link_to "成员管理", manage_users_group_path(@group) %></li>
                    <% end -%>
                </ul>
            </div>
	    <div class="tab">
  		<h3>搜索用户</h3>
	    </div>
	    <div class="clear">
		<center>
                    <% form_tag search_users_group_path(@group),  :method => :get do -%>
                        <input name="q" type="text" size="32" maxlength="72" value="" id="page_focus"/>
                        <br/>
                        <input type="submit" value="搜索"/>
                    <% end -%>
                </center>
	    </div>
            
            <% if @tags.size > 0 -%>
            <div class="tab">
  		<h3>小组标签</h3>
	    </div>
	    <div class="clear">
		<% tag_cloud @tags, %w(nube1 nube2 nube3 nube4 nube5) do |name, css_class| -%>
                    <span class="<%=css_class%>">
                    <%= link_to name, tag_path(name, :type => 'group', :type_id => @group) %>
                    </span>
                <% end -%>
	    </div>
            <% end -%>
            
            <% if @like_groups.size > 0 -%>
            <div class="tab">
  		<h3>这个小组的成员常去的小组</h3>
	    </div>
	    <div class="clear">
                    <%= render :partial => 'shared/grouplist', :object => @like_groups %>
	    </div>
            <% end -%>
            
            <div class="tab">
  		<h3>最新加入(<%= link_to "浏览所有成员(#{@group.users.size})", users_group_path(@group) %>)</h3>
	    </div>
	    <div class="clear">
		<%= render :partial => "shared/groupuserlist", :object => @new_users %>
	    </div>
	    <% end -%>
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                » <%= link_to "小组", groups_path %>
                » <%= link_to "#{@group.title}", group_path(@group) %>
                (
                <% if current_user.nil? or (!current_user.nil? and !current_user.is_group_user(@group)) -%>
                    <% form_tag join_group_path(@group) do -%>
                    <%= submit_tag '加入' %>
                    <% end -%>
                <% else -%>
                    <% form_tag quit_group_path(@group) do -%>
                    <%= submit_tag '退出' %>
                    <% end -%>
                <% end -%>
                )
            </div>
            <% end -%>
            <div class="box">
                <%= render :partial => 'shared/groupMediumImage', :object =>@group%>
                <br/>
                <%= textilize(@group.description)%>
            </div>
            <div class="box">
            <%= feed_icon_tag @group.title, formatted_group_path(@group, :rss) %> 
            最近小组讨论　· · · · · ·<br/>
            <% if @posts.empty? -%>
                <p>还没有话题哦</p>
            <% else -%>
                <%= render :partial=>'shared/posts', :object => @posts%>
            <% end -%>
            </div>


